
public class P12 {
	public static void main(String[] args) {
		int i = 1;
		int sum = 0;
		
		while (true) {
			sum += i;
			int divisorCount = Util.getDivisorCount(sum);
			if (divisorCount >= 500) {
				break;
			}
			i++;
		}
		
		System.out.println(i + ", " + sum);
	}
}
